﻿{#template MAIN}
<table id="gridLocation" cellpadding="5" cellspacing="0" class="grid">
    <thead>
        <th>
            Location Name
        </th>
        <th>
            <a class="btnNew" href="/Pages/Operators/LocationItem.aspx">Add</a>
        </th>
    </thead>
    <tbody>
        {#foreach $T.List as location}
        <tr class="{#cycle values=['','evenRow']}">
            {#include ROW root=$T.location}
            <td>
                <a href="/Pages/Operators/LocationItem.aspx?LocationID={$T.location.LocationID}"
                    class="btnEdit">Edit</a> {#if $T.IsAdmin } |&nbsp;<a locationid="{$T.location.LocationID}"
                        class="btnDelete">Delete</a> {#/if}
            </td>
        </tr>
        {#/for}
    </tbody>
</table>
{#/template MAIN} {#template ROW}
<td>
    {$T.LocationName}
</td>
{#/template ROW}